#include "StdAfx.h"
#include "NegateReq.h"


NegateReq::NegateReq(TriggerRequirement*req)
{
	targetReq = req;
}


NegateReq::~NegateReq(void)
{
}


bool NegateReq::CheckReq(EntityControl *entity)
{
	return !targetReq->CheckReq(entity);
}

void NegateReq::subscribeParameterChanged(EntityControl *entity,TriggerRequirement*req)
{
	targetReq->subscribeParameterChanged(entity,this);
}

void NegateReq::unSubscribeParameterChanged(EntityControl *entity,TriggerRequirement*req)
{
	targetReq->unSubscribeParameterChanged(entity,this);
}